| Miles Sound System SDK 7.2a |
Q: | How do I play a digital sound? |
A: | To play a digital sound with the full Miles API, follow these steps: 1) Allocate an HSAMPLE with AIL_allocate_sample_handle. 2) Load the file from the disk with AIL_file_read (or your own file IO routines). 3) Point the HSAMPLE at the loaded disk file image with AIL_set_sample_file, AIL_set_named_sample_file, or AIL_set_sample_info. 4) Finally, call AIL_start_sample to begin playing the HSAMPLE.
1) Call AIL_quick_load to load the file. 2) Play the file with AIL_quick_play. |
Next Topic (How do I use multi-channel sound output in Miles?)
Previous Topic (How do I initialize the Miles Sound System for use?)
Group:
FAQs and How Tos
Related Functions:
AIL_allocate_sample_handle, AIL_file_read, AIL_quick_load, AIL_quick_play, AIL_set_named_sample_file, AIL_set_sample_file, AIL_set_sample_info, AIL_start_sample
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.